<!DOCTYPE html>
<html>
<head>
    <title>Laravel</title>

    <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">

    <style>
        html, body {
            height: 100%;
        }

        body {
            margin: 0;
            padding: 0;
            width: 100%;
            display: table;
            font-weight:100;
            font-family: '微软雅黑';
        }

        .container {

        }

        .content {
            text-align: center;
            display: inline-block;
        }

        .title {
            font-size: 60px; margin-left:70px;;
        }
        .title h1{ margin: 0; padding: 0; margin-left: 10px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="content">
        <div class="title">
            @if (session('status'))
                <h3>Y(^_^)Y</h3>
                <div class="alert alert-success">
                    {{ session('status') }}
                </div>
            @endif</div>
    </div>
</div>
<p class="jump" style="margin-left: 70px;">
    页面将自动 <a id="href" href="{{ session('uri') }}">跳转到指定页面</a> 等待时间：
    <b id="wait" style="font-size: 22px;">{{ session('seconds') }}</b>
</p>
{{--<div id="wait">3</div>--}}
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait');
        var href = "{{ session('uri') }}";
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            wait.innerHTML = time;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>
